package com.ruoyi.app.controller;

import com.ruoyi.app.service.HealthyService;
import com.ruoyi.app.util.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("healthy")
public class HealthyController {
    @Autowired
    private HealthyService healthyService;

    @RequestMapping("list")
    public Result list(){
        return healthyService.list();
    }
    @RequestMapping("selectId")
    public Result selectId(Long id){
        return healthyService.selectId(id);
    }
}
